package com.xinsteel.cyjk.contract.controller;

import com.xinsteel.cyjk.contract.service.CyjkService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author zzl
 * @version 1.0
 * @date 2022/5/18 17:47
 */
@Controller
@RequestMapping("/interface/cyjk")
@CrossOrigin
public class CyjkController {

    @Resource
    private CyjkService cyjkService;


    @RequestMapping("/encryptionUrl")
    @ResponseBody
    public String encryptionUrl(@RequestBody String queryJson){
        String s = cyjkService.encryptionUrl(queryJson);
        return s;
    }

    @RequestMapping("/encryptionMarketUrl")
    @ResponseBody
    public String encryptionMarketUrl(@RequestBody String queryJson){
        String s = cyjkService.encryptionMarketUrl(queryJson);
        return s;
    }
}
